/**
 * 分页拿active
 * @param params
 * @returns {AxiosPromise}
 */
import request from "@/utils/request";

export const getActivePage = (params)=>request({url:'/active/getActivePage',method:'post',data:params})

/**
 * 删除active
 * @param params
 * @returns {AxiosPromise}
 */
export const deleteActiveList = (params)=>request({url:'/active/delete',method:'delete',data:params})


/**
 * 保存或者修改Active
 * @param params
 * @returns {AxiosPromise}
 */
export const saveOrUpdateActive = (params)=>request({url:'/active/saveOrUpdate',method:'post',data:params})


/**
 * 禁用type
 * @param params
 * @returns {AxiosPromise}
 */
export const typeIsDisable = (params)=>request({url:'/active/typeIsDisable',method:'post',data:params})

/**
 * 上传图片
 */
export const uploadActivePricutre=(param)=>request({url:"/file/bookPricutre",method:"post",data:param})
